![]() |
NewAliasMinimalFromFullPath |
||||
Header: | Aliases.h | Carbon status: | Supported | |
Creates an alias record that contains only the full pathname of the target.
OSErr NewAliasMinimalFromFullPath ( SInt16 fullPathLength, const void *fullPath, ConstStr32Param zoneName, ConstStr31Param serverName, AliasHandle *alias );
The number of characters in the full pathname of the target.
A pointer to a buffer that contains the full pathname of the target. The full pathname starts with the name of the volume, includes all of the directory names in the path to the target, and ends with the target name. (For a description of pathnames, see the documentation for the File Manager.)
The AppleTalk zone name of the AppleShare volume on which the target resides. Set this parameter to a null string if you do not need it.
The AppleTalk server name of the AppleShare volume on which the target resides. Set this parameter to a null string if you do not need it.
A handle to the newly created alias record. If the function fails to create an alias record, it sets alias to NULL.
A result code.
The NewAliasMinimalFromFullPath function creates an alias record that identifies the target by full pathname. You can call NewAliasMinimalFromFullPath to create an alias record for a file that doesn’t exist or that resides on an unmounted volume.
The NewAliasMinimalFromFullPath function uses the standard alias record data structure, but it fills in only the information provided in the input parameters. You can therefore use NewAliasMinimalFromFullPath to create alias records for targets on unmounted volumes.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/4/2000)